package com.xiaoshuidi.cloud.module.report.constant;

public enum PayWayEnum {

    MONTH(1,"月付"),
    TOW (2,"付2"),
    QUARTERLY (3,"季付"),
    FOUR (4,"付4"),
    FIVE (5,"付5"),
    SEMI_ANNUAL(6,"半年付"),

    SEVEN(7,"付7"),
    EIGHT(8,"付8"),
    NINE(9,"付9"),
    TEN(10,"付10"),
    ELEVEN(11,"付11"),
    ANNUAL (12,"年付"),

    ;

    private int month;

    private String value;

    PayWayEnum(int month, String value) {
        this.month = month;
        this.value = value;
    }

    public int getMonth() {
        return month;
    }

    public String getValue() {
        return value;
    }

    public static String getValueByMonth(int month){
        for (PayWayEnum payWayEnum : PayWayEnum.values()) {
            if(payWayEnum.month == month){
                return payWayEnum.value;
            }
        }
        return "未知";
    }
}
